﻿@model MvcApplication6.Models.UserModel
@{
    ViewBag.Title = "Login";
}

<link href="../../Content/css/nn-styles.css" rel="stylesheet" type="text/css"/>

@{
    if (@ViewBag.success == "NOT")
   {
      <script type="text/javascript">
          alert("Login false..... ");
      </script>
   }
}

<div id="content">
    <a style="margin-left:127px;margin-top:5px;" href="http://aptechpro.vn/"><b>Trang chủ</b></a>  
    <h1 class="ad-title"><center>Login Form</center></h1>
    <div class="login" style="margin:50px 0 0 450px;">
        @using (Html.BeginForm("Login", "admin", FormMethod.Post))
        {
            @Html.AntiForgeryToken() <!--Chống giả lập yêu cầu -->
            @Html.ValidationSummary(true) <!-- hiện thị kiểm lỗi phía Server-->

            <p>
                @Html.TextBoxFor(model => model.name, new { type = "text", name = "login", placeholder = "Username or Email" })
                @Html.ValidationMessageFor(model => model.name)
            </p>
            <p>
                @Html.TextBoxFor(model => model.password, new { type = "password", name = "password", placeholder = "Password" })
                @Html.ValidationMessageFor(model => model.password)
            </p>
        
            <p class="remember_me">
		      <label>
                <a href="ChangePassword" target="_blank"> Thay đổi mật khẩu</a>
              </label>
            </p><br>        
        
            <p><input type="submit" name="commit" value="Login" class="submit"></p>
        }
    </div>

     
</div><!-- end.content-->